package com.smarthospital.common.util;

/**
 * create by sym  2021/5/23 19:15.
 */
public class SHStringUtil {
    //补全
    public static String complString(String originStr,int length,String charStr){
        int number = length - originStr.length();
        StringBuffer stringBuffer = new StringBuffer(originStr);
        for (int i = 0; i < number; i++) {
            stringBuffer.insert(0,charStr);
        }
        return stringBuffer.toString();
    }
}
